package com.example.auction.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author winki
 * @since 2025-04-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品编号
     */
    @TableId
    private Long id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品描述
     */
    private String detail;

    /**
     * 商品图片
     */
    private String img;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 商品运费
     */
    private BigDecimal fare;

    /**
     * 商品库存
     */
    private String stock;

    /**
     * 秒杀状态
     */
    private Integer sckillStatus;

    /**
     * 发布状态
     */
    private Integer publishStatus;

    /**
     * 商品介绍
     */
    private String introduce;

    /**
     * 佣金状态
     */
    private Integer commissonStatus;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建人
     */
    private Long createId;

    /**
     * 修改人
     */
    private Long updateId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getFare() {
        return fare;
    }

    public void setFare(BigDecimal fare) {
        this.fare = fare;
    }

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }

    public Integer getSckillStatus() {
        return sckillStatus;
    }

    public void setSckillStatus(Integer sckillStatus) {
        this.sckillStatus = sckillStatus;
    }

    public Integer getPublishStatus() {
        return publishStatus;
    }

    public void setPublishStatus(Integer publishStatus) {
        this.publishStatus = publishStatus;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public Integer getCommissonStatus() {
        return commissonStatus;
    }

    public void setCommissonStatus(Integer commissonStatus) {
        this.commissonStatus = commissonStatus;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Long updateId) {
        this.updateId = updateId;
    }

    @Override
    public String toString() {
        return "Goods{" +
            "id = " + id +
            ", name = " + name +
            ", detail = " + detail +
            ", img = " + img +
            ", price = " + price +
            ", fare = " + fare +
            ", stock = " + stock +
            ", sckillStatus = " + sckillStatus +
            ", publishStatus = " + publishStatus +
            ", introduce = " + introduce +
            ", commissonStatus = " + commissonStatus +
            ", createTime = " + createTime +
            ", updateTime = " + updateTime +
            ", createId = " + createId +
            ", updateId = " + updateId +
        "}";
    }
}
